import BaseModel from "../baseModel.js";

class MenuModel extends BaseModel {
    /**
     * @param {MenuModel} model 
     * @returns {}
     */
    constructor(model) {
        super(model);
        /* 自定义属性以及重载 */
        this.parentID = model.parentID
        this.path = MenuModel.CheackNull(model.path, 'path')
        this.label = MenuModel.CheackNull(model.label, 'label')
        this.type = MenuModel.CheackBoolean(model.type)
        this.sequence = model.sequence || 1
    }
    static Instance = 'menutable'
}
export default MenuModel;